package com.mgs.fwk.util
{
	public class StringUtils
	{
		public static function endWith(haystack:String, needle:String):Boolean
		{
			return haystack != null && 
				needle != null && 
				haystack.length > needle.length &&
				haystack.indexOf(needle) == haystack.length - needle.length;
		}
	}
}